<template>
    <div class="icons">
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/54/ace00878a52d9702.png'/>
        </div>
        <p class="icon-desc">热门景点</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1711/df/86cbcfc533330d02.png'/>
        </div>
        <p class="icon-desc">滑雪季</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1710/a6/83f636bd75ae6302.png'/>
        </div>
        <p class="icon-desc">泡温泉</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/35/2640cab202c41b02.png'/>
        </div>
        <p class="icon-desc">动植物园</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/a9/ffc620dbda9b9c02.png'/>
        </div>
        <p class="icon-desc">一日游</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/d0/e09575e66f4aa402.png'/>
        </div>
        <p class="icon-desc">游乐园</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/7f/b1ea3c8c7fb6db02.png'/>
        </div>
        <p class="icon-desc">城市观光</p>
      </div>
      <div class="icon">
        <div class="icon-img">
          <img class="icon-img-content" src='http://img1.qunarzz.com/piao/fusion/1611/17/4bd370f3eb1acd02.png'/>
        </div>
        <p class="icon-desc">演出</p>
      </div>
    </div>
</template>

<script>
import Swiper from './Swiper.vue'
export default {
  components: { Swiper },
    name: 'HomeIcons'
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/varibles.styl'
  @import '~@/assets/styles/mixins.styl'
  .icons
    overflow: hidden
    height: 0
    padding-bottom: 50%
    margin-top: .2rem
    .icon
      position: relative
      overflow: hidden
      float: left
      width: 25%
      height: 0
      padding-bottom: 25%
      .icon-img
        position: absolute
        top: 0
        left: 0
        right: 0
        bottom: .10rem
        box-sizing: border-box
        padding: .1rem
        .icon-img-content
          display: block
          margin: 0 auto
          height: 80%
      .icon-desc
        position: absolute
        left: 0
        right: 0
        bottom: 0
        height: .80rem
        line-height: .45rem
        text-align: center
        color: $darkTextColor
        ellipsis()
</style>